<template>
  <div class="myheader">
      <div class="left">
          <slot name='left'></slot>
      </div>
      <div class="center">{{title}}</div>
      <div class="right">
          <slot name='right'></slot>
      </div>
  </div>
</template>

<script>
export default {
    props:{
        title:{
            type:String,
            default:'顶部栏'
        }
    }
}
</script>

<style lang="less" scoped>
   .myheader{
       height: 50px;
       display: flex;
       justify-content: space-between;
       padding: 0 15px;
       align-items: center;
       border-bottom:1px solid #ccc 
   } 
</style>